package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 *
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 0: 超级管理员, 1: 管理员, 2: 用户
     */
    @TableField(value = "role")
    private Integer role;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     *
     */
    @TableField(value = "tt_state")
    private byte[] ttState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public static void main(String[] args) {
        StringBuilder binaryStringBuilder = new StringBuilder();
        for (int i = 0; i < 10; i++) {
            binaryStringBuilder.append(0);
        }
        System.out.println(binaryStringBuilder.toString());
    }
}
